package czk.concrent.threadpool.extend;

import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.TimeUnit;

/**
 * @Author:ChenZhangKun
 * @Date: 2022/7/31 17:45
 */
public class Test {
    public static void main(String[] args) {
        MyThreadPoolExecutor threadExecutor = new MyThreadPoolExecutor(5, 5, 1, TimeUnit.SECONDS, new LinkedBlockingDeque<>());
        MyThread thread = new MyThread("czk");
        threadExecutor.execute(thread);
        threadExecutor.shutdown();

    }
}
